﻿using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace WCF.Common.Navigation
{
    /// <summary>表示一个组件导航基础类</summary>
    [DataContract(Namespace = Constrons.NameSpace)]
    public class NavigationBase
    {
        /// <summary>
        /// 获取或设置组件的编码，唯一标识。
        /// </summary>
        [DataMember,XmlAttribute]
        public string Code { get; set; }
        /// <summary>
        /// 获取或设置组件的标题。
        /// </summary>
        [DataMember,XmlAttribute]
        public string Caption { get; set; }
        /// <summary>
        /// 获取或设置组件的参数表达式。
        /// </summary>
        [DataMember, XmlAttribute]
        public string ParmsExpression { get; set; }

        [DataMember, XmlAttribute]
        public bool IsChecked { get; set; }
        /// <summary>
        /// 获取或设置应用组件的图标（大）
        /// </summary>
        [DataMember]
        [XmlAttribute]
        public string ImageUrl1 { get; set; }
    }
}